module ram_r
#(parameter WIDTH_ADDR = 64, WIDTH_DATA = 32, DEPTH_DATA = 256)
(
    input clk,
    //input reset,

    input [WIDTH_ADDR - 1:0] addr,
    output reg [WIDTH_DATA -1:0] rdata
);
    reg [WIDTH_DATA - 1:0] mem[0:DEPTH_DATA - 1];
    
    initial begin
        $readmemb("~oscpu/mycpu/rtl/inst.txt", mem);
    end

    always @(posedge clk) begin
        rdata <= mem[addr];
    end
endmodule
